﻿//JumbotCms_4.1 Final
using System;
using System.Data;
using System.IO;
using System.Web;
using System.Web.UI.WebControls;
using JumbotCms.Common;
namespace JumbotCms.Modules.Version.AdminSource
{
    public partial class _searchform : JumbotCms.API.AdminCenter
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            //通过ccid传频道ID
            ChannelId = Str2Str(q("ccid"));
            id = Str2Str(q("id"));
            Admin_Load(ChannelId + "-04", "html", true);
            if (!Page.IsPostBack)
            {
                if (q("k") != "")
                    this.txtKeyword.Text = q("k");
                ListItem li3;
                string _StateValues = ",0,1,2,3";
                string _StateTexts = "全部稿件,等待接稿,正在翻译,交稿待审,已经归档";
                string[] _StateValue = _StateValues.Split(',');
                string[] _StateText = _StateTexts.Split(',');
                for (int i = 0; i < _StateValue.Length; i++)
                {
                    li3 = new ListItem();
                    li3.Value = _StateValue[i];
                    li3.Text = _StateText[i];
                    if (q("state") != "")
                    {
                        if (q("state") == li3.Value)
                            li3.Selected = true;
                        else
                            li3.Selected = false;
                    }
                    this.ddlState.Items.Add(li3);
                }

                if (q("d") != "")
                {
                    for (int i = 0; i < this.ddlAddDate.Items.Count; i++)
                    {
                        if (this.ddlAddDate.Items[i].Value == q("d"))
                            this.ddlAddDate.Items[i].Selected = true;
                    }
                }
            }

        }

    }
}
